import { Entity, PrimaryGeneratedColumn, OneToMany, Column } from 'typeorm'
import { App } from './app.entity'

@Entity()
export class AppWindow {
  @PrimaryGeneratedColumn()
  id: number

  @OneToMany(type => App, app => app.window)
  app: App

  @Column()
  navigationBarBackgroundColor: string

  @Column()
  navigationBarTextStyle: string

  @Column()
  navigationBarTitleText: string

  @Column()
  navigationStyle: string

  @Column()
  backgroundColor: string

  @Column()
  backgroundTextStyle: string

  @Column()
  backgroundColorTop: string

  @Column()
  backgroundColorBottom: string

  @Column()
  enablePullDownRefresh: string

  @Column()
  onReachBottomDistance: string
}
